# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.
#
# Old Maintainer: Jan de Groot <jgc@archlinux.org>
# Old Contributor: William Rea <sillywilly@gmail.com>

pkgname=libnl1
_pkgname=libnl
pkgver=1.1.4
pkgrel=4
pkgdesc='Library for applications dealing with netlink sockets (Legacy version).'
arch=('x86_64' 'aarch64')
url='https://www.infradead.org/~tgr/libnl/'
license=('GPL')
depends=('glibc')
options=('!staticlibs')
source=("https://www.infradead.org/~tgr/$_pkgname/files/$_pkgname-$pkgver.tar.gz")
sha512sums=('25e26ddcc16540346ea34815ab6ac094177e5cee2eb3d843c4f8b30cd9d83390a3e87cb46046dc3bd9ae4d21f77e57bb3827c2cfc588eb18afe049921f2030b4')

build() {
  cd "$_pkgname-$pkgver"

  ./configure --prefix=/usr

  make
}

package() {
  cd "$_pkgname-$pkgver"

  make DESTDIR="$pkgdir" install
}

